package com.future.order.feign;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.client.loadbalancer.CompletionContext;
import org.springframework.cloud.client.loadbalancer.LoadBalancerLifecycle;
import org.springframework.cloud.client.loadbalancer.Request;
import org.springframework.cloud.client.loadbalancer.Response;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class CustomLoadBalancerLifecycle implements LoadBalancerLifecycle {
    @Override
    public void onStart(Request request) {
        log.info("onStart");
    }

    @Override
    public void onStartRequest(Request request, Response lbResponse) {

        log.info("onStartRequest");
    }

    @Override
    public void onComplete(CompletionContext completionContext) {
        log.info("onComplete");
    }
}
